package com.sc.nft.req.profittemplate;

import com.sc.nft.enums.ProfitTemplateRewardsEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author JYT
 * @create 2024/5/10 15:50
 */
@Data
public class profitTemplateReq {
    private Long id;
    /**
     * 分佣模板名称
     */
    @NotEmpty(message = "分佣模板名称不能为空")
    @ApiModelProperty(value = "分佣模板名称")
    private String profitTemplateName;
    /**
     * 分佣比例
     */
//    @NotNull(message = "分佣比例不能为空")
    @ApiModelProperty(value = "分佣比例")
    private BigDecimal proportion;
    /**
     * 奖励积分
     */
    @NotNull(message = "奖励积分不能为空")
    @ApiModelProperty(value = "奖励积分 PROFIT_AMOUNT 按照佣金金额换算 ,PAYMENT_AMOUNT 按照实付金额换算")
    private ProfitTemplateRewardsEnum bonusPoints;
    /**
     * 商城活动商品id
     */
    @NotEmpty(message = "绑定商城活动商品不能为空")
    @ApiModelProperty(value = "商城活动商品id")
    private List<ProfitTemplateItemReq> mallActivityIdList;
}
